import Vue from 'vue';
import App from './App.vue';
import store from './store';

// 插件
import './plugins/element';

import echarts from './plugins/echarts';
import 'default-passive-events';
import Clipboard from 'v-clipboard';

// 样式
import '@/assets/styles/reset.css';
import '@/assets/styles/element-cover.scss';
import '@/assets/styles/style.scss';

// 增强
import '@/components/SvgIcon';
import '@/directive';
import { getImageUrl } from './utils/getImageUrl';

// 全局过滤器
import * as filters from '@/filters';

Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key]);
});

Vue.use(Clipboard);
Vue.prototype.$EventBus = new Vue();
Vue.prototype.$staticRes = getImageUrl;
Vue.prototype.$echarts = echarts;

Vue.config.productionTip = false;
Vue.config.devtools = true;
new Vue({
  store,
  render: (h) => h(App)
}).$mount('#app');
